package packagerole;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "user_account")
@Entity
public class UserAccount extends Account {
	@Override
	public String toString() {
		return "UserAccount [id=" + id + ", balance=" + balance + ", user_id=" + userId + "]";
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getUserBalance() {
		return balance;
	}

	public void setUserBalance(int balance) {
		this.balance = balance;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long user_id) {
		this.userId = user_id;
	}

	@Id
	@Column(name = "id")
	private long id;
	@Column(name = "balance")
	private int balance;
	@Column(name = "user_id")
	private long userId;
}
